using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Easislides
{
	public class FrmPopupText : Form
	{
		private IContainer components = null;
		private TextBox tbData;
		private Button BtnCancel;
		private Button BtnOK;
		public FrmPopupText()
		{
			this.InitializeComponent();
		}
		private void FrmPopup_Load(object sender, EventArgs e)
		{
			this.tbData.MaxLength = gf.popUpTextMaxLength;
			this.tbData.Text = gf.Left(gf.popUpText, gf.popUpTextMaxLength);
		}
		private void FrmPopup_FormClosed(object sender, FormClosedEventArgs e)
		{
		}
		private void BtnOK_Click(object sender, EventArgs e)
		{
			gf.popUpText = this.tbData.Text;
			base.Close();
		}
		private void BtnCancel_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.tbData = new TextBox();
			this.BtnCancel = new Button();
			this.BtnOK = new Button();
			base.SuspendLayout();
//			this.tbData.Location = new Point(3, 2);
			this.tbData.Multiline = true;
			this.tbData.Name = "tbData";
			this.tbData.Size = new Size(258, 156);
			this.tbData.TabIndex = 0;
//			this.BtnCancel.DialogResult = DialogResult.Cancel;
			this.BtnCancel.FlatStyle = FlatStyle.Popup;
			this.BtnCancel.Location = new Point(139, 161);
			this.BtnCancel.Name = "BtnCancel";
			this.BtnCancel.Size = new Size(80, 24);
			this.BtnCancel.TabIndex = 2;
			this.BtnCancel.Text = "Cancel";
			this.BtnCancel.Click += new EventHandler(this.BtnCancel_Click);
			this.BtnOK.FlatStyle = FlatStyle.Popup;
			this.BtnOK.Location = new Point(43, 161);
			this.BtnOK.Name = "BtnOK";
			this.BtnOK.Size = new Size(80, 24);
			this.BtnOK.TabIndex = 1;
			this.BtnOK.Text = "OK";
			this.BtnOK.Click += new EventHandler(this.BtnOK_Click);
			base.AcceptButton = this.BtnOK;
			base.AutoScaleDimensions = new SizeF(6f, 13f);
//			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(264, 188);
			base.ControlBox = false;
			base.Controls.Add(this.BtnCancel);
			base.Controls.Add(this.BtnOK);
			base.Controls.Add(this.tbData);
//			base.FormBorderStyle = FormBorderStyle.FixedSingle;
			base.Name = "FrmPopupText";
			base.ShowInTaskbar = false;
			base.TopMost = true;
			base.FormClosed += new FormClosedEventHandler(this.FrmPopup_FormClosed);
			base.Load += new EventHandler(this.FrmPopup_Load);
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
